const moment = require('moment');

exports.getCurrentMonthFirst = () => {
    var date = moment().startOf('month').subtract(1, "days").startOf('day').format("YYYY-MM-DD");
    return date + ' ' + '23:30:00';
}

exports.getCurrentMonthLast = () => {
    var date = moment().endOf('month').format("YYYY-MM-DD");
    return date + ' ' + '23:30:00';
}

exports.getCurrentDayStart = () => {

    var date1 = moment().subtract(1, "days").startOf('day').format("YYYY-MM-DD");
    return date1 + ' ' + '23:30:00';
}
exports.getCurrentDayEnd = () => {
    var date2 = moment().format("YYYY-MM-DD");
    return date2 + ' ' + '23:30:00';
}

